<template>
	<view class="container">
		<view class="flex flex-wrap diygw-col-24 flex-direction-column flex1-clz">
			<view class="flex flex-wrap diygw-col-24 items-center flex3-clz">
				<image src="/static/favicon.png" class="diygw-image diygw-col-0 white image1-clz" style="height: 60px !important; width: 60px" mode="widthFix"></image>
				<view class="flex flex-wrap diygw-col-0 flex-direction-column justify-between flex5-clz">
					<view class="diygw-col-0 diygw-text-lg">
						{{ userList.data.list[0].user_name_ }}
					</view>
					<view class="flex diygw-col-0 items-center flex-nowrap flex7-clz">
						<view class="diy-icon-moneybagfill diygw-col-0 text5-clz"> </view>
						<view class="diygw-col-0 text7-clz"> 已有8人帮扶 </view>
						<view class="flex diygw-col-19 justify-end">
							<view class="diygw-avatar sm green radius">
								<text class="diy-icon-servicefill"></text>
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="flex flex-wrap diygw-col-24 flex-direction-column white flex9-clz">
				<view class="flex flex-wrap diygw-col-24 justify-start items-center flex13-clz">
					<image src="/static/icon3_hy.png" class="diygw-image diygw-col-0 image2-clz" style="height: 24px !important; width: 24px" mode="widthFix"></image>
					<view class="diygw-col-0 text-clz"> 我的创业圈 </view>
					<view class="diygw-col-0 text3-clz"> 已发布两个创业项目 </view>
				</view>
			</view>
		</view>
		<view class="flex diygw-col-24 white list-clz">
			<view class="diygw-list small not-remark">
				<view @tap="navigateTo" data-type="page" data-url="/pages/my/yifabudexiangmu" :data-id="userList.data.list[0].id_" style="" class="diygw-item col-100 row arrow solid-bottom list-item-clz">
					<view class="diygw-avatar list-icon-clz">
						<image mode="aspectFit" class="diygw-avatar-img" src="/static/db.png"></image>
					</view>
					<view class="content">
						<view class="title"> 已发布项目 </view>
					</view>
				</view>
				<view @tap="navigateTo" data-type="page" data-url="/pages/my/wodeguanzhu1" style="" class="diygw-item col-100 row arrow solid-bottom list-item-clz">
					<view class="diygw-avatar list-icon-clz">
						<image mode="aspectFit" class="diygw-avatar-img" src="/static/jbqx.png"></image>
					</view>
					<view class="content">
						<view class="title"> 我的关注 </view>
					</view>
				</view>
				<view @tap="navigateTo" data-type="page" data-url="/pages/my/pengyoufabudexiangmu" style="" class="diygw-item col-100 row arrow solid-bottom list-item-clz">
					<view class="diygw-avatar list-icon-clz">
						<image mode="aspectFit" class="diygw-avatar-img" src="/static/jbqx.png"></image>
					</view>
					<view class="content">
						<view class="title"> 朋友发布的项目 </view>
					</view>
				</view>
				<view @tap="navigateTo" data-type="page" data-url="/pages/my/gongshangzhuce" style="" class="diygw-item col-100 row arrow solid-bottom list-item-clz">
					<view class="diygw-avatar list-icon-clz">
						<image mode="aspectFit" class="diygw-avatar-img" src="/static/yj3.png"></image>
					</view>
					<view class="content">
						<view class="title"> 工商注册 </view>
					</view>
				</view>
				<view @tap="navigateTo" data-type="page" data-url="/pages/my/yaoyueqiyejia" style="" class="diygw-item col-100 row arrow solid-bottom list-item-clz">
					<view class="diygw-avatar list-icon-clz">
						<image mode="aspectFit" class="diygw-avatar-img" src="/static/jbqx.png"></image>
					</view>
					<view class="content">
						<view class="title"> 邀约企业家指导 </view>
					</view>
				</view>
				<view style="" class="diygw-item col-100 row arrow solid-bottom list-item-clz">
					<view class="diygw-avatar list-icon-clz">
						<image mode="aspectFit" class="diygw-avatar-img" src="/static/jbqx.png"></image>
					</view>
					<view class="content">
						<view class="title"> 拜师 </view>
					</view>
				</view>
				<view @tap="navigateTo" data-type="page" data-url="/pages/my/wodegongyinglian" style="" class="diygw-item col-100 row arrow solid-bottom list-item-clz">
					<view class="diygw-avatar list-icon-clz">
						<image mode="aspectFit" class="diygw-avatar-img" src="/static/jbqx.png"></image>
					</view>
					<view class="content">
						<view class="title"> 我的供应链 </view>
					</view>
				</view>
			</view>
		</view>
		<view class="flex flex-wrap diygw-col-24 justify-end flex-clz">
			<view class="flex diygw-col-0">
				<view class="diygw-avatar sm cyan radius">
					<text class="diy-icon-settings"></text>
				</view>
			</view>
		</view>
		<view class="flex diygw-col-24 diygw-bottom">
			<view class="diygw-grid diygw-actions">
				<button @tap="navigateTo" data-type="page" data-url="/pages/index/shouye" class="diygw-action addon">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar diy-icon-homefill" style="color: rgba(167, 160, 165, 0.97)"> </view>
						<view class="diygw-grid-title"> 首页 </view>
					</view>
				</button>
				<button class="diygw-action addon">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar diy-icon-message"> </view>
						<view class="diygw-grid-title"> 消息中心 </view>
					</view>
				</button>
				<button @tap="navigateTo" data-type="page" data-url="/pages/youxuanxiangmu/youxuanxiangmu" class="diygw-action addon">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar diy-icon-crown"> </view>
						<view class="diygw-grid-title"> 优选项目 </view>
					</view>
				</button>
				<button @tap="navigateTo" data-type="page" data-url="/pages/my/chuangyezhegerenzhongxin" class="diygw-action addon">
					<view class="diygw-grid-inner">
						<view class="diygw-grid-icon diygw-avatar diy-icon-peoplefill" style="color: rgba(255, 0, 0, 0.91)"> </view>
						<view class="diygw-grid-title"> 我的 </view>
					</view>
				</button>
			</view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	//create by: 邓志锋 <280160522@qq.com> <https://www.diygw.com> DIYGW可视化设计一键生成源码
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				userList: {
					code: '200',
					data: {
						count: 4,
						list: [
							{
								user_phone_: '123',
								user_type_: '123',
								user_name_: '用户1',
								id_: '434443664980705281',
								user_password_: '123'
							},
							{
								user_phone_: '123',
								user_type_: '123',
								user_name_: '用户2',
								id_: '434443977751527425',
								user_password_: '123'
							},
							{
								user_phone_: '222',
								user_type_: '222',
								user_name_: '用户3',
								id_: '434443977751527426',
								user_password_: '222'
							},
							{
								user_phone_: '123',
								user_type_: '123',
								user_name_: '用户4',
								id_: '434444372742504449',
								user_password_: '123'
							}
						]
					},
					isOk: true
				}
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {
				await this.userListApi();
			},
			// 用户接口 API请求方法
			async userListApi() {
				let userList = await this.$http.post(
					'https://agent.diygw.com/',
					{
						url: '/form/formCustSql/view/liststr_userList',
						method: 'post',
						headers: {
							'Content-Type': 'application/x-www-form-urlencoded'
						},
						param: '{"curPage":1,"pageSize":"10","params":{}}'
					},
					{
						'Content-type': 'application/json'
					},
					'json'
				);
				this.userList = userList;
			}
		}
	};
</script>

<style lang="scss" scoped>
	.flex1-clz {
		z-index: 100;
		background-repeat: no-repeat;
		background-size: contain;
		background-image: url(/static/82.png);
		background-position: top right;
	}
	.flex3-clz {
		margin-left: 5px;
		z-index: 100;
		width: calc(100% - 5px - 5px) !important;
		margin-top: 35px;
		margin-bottom: 20px;
		margin-right: 5px;
	}
	.image1-clz {
		flex-shrink: 0;
		border-bottom-left-radius: 50%;
		overflow: hidden;
		width: 60px !important;
		border-top-left-radius: 50%;
		border-top-right-radius: 50%;
		border-bottom-right-radius: 50%;
		height: 60px !important;
	}
	.flex5-clz {
		margin-left: 5px;
		z-index: 100;
		color: #ffffff;
		flex: 1;
		margin-top: 0px;
		margin-bottom: 0px;
		margin-right: 5px;
	}
	.flex7-clz {
		z-index: 100;
	}
	.text5-clz {
		font-size: 18px;
	}
	.text7-clz {
		margin-left: 5px;
		margin-top: 5px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.flex9-clz {
		padding-top: 10px;
		border-bottom-left-radius: 10px;
		z-index: 100;
		padding-left: 10px;
		padding-bottom: 10px;
		border-top-right-radius: 10px;
		margin-right: 10px;
		margin-left: 10px;
		box-shadow: 1px 1px 3px 1px rgba(154, 154, 154, 0.37);
		overflow: hidden;
		width: calc(100% - 10px - 10px) !important;
		border-top-left-radius: 10px;
		margin-top: 0px;
		border-bottom-right-radius: 10px;
		margin-bottom: 10px;
		padding-right: 10px;
	}
	.flex13-clz {
		z-index: 100;
		background-image: linear-gradient(135deg, #ffeacf 1%, #f8dfb6 99%);
	}
	.image2-clz {
		margin-left: 5px;
		margin-top: 5px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.text-clz {
		font-size: 18px;
	}
	.text3-clz {
		padding-top: 6px;
		border-bottom-left-radius: 30px;
		color: #ffd4a0;
		padding-left: 8px;
		padding-bottom: 6px;
		border-top-right-radius: 30px;
		margin-right: 5px;
		background-color: #272935;
		margin-left: 70px;
		overflow: hidden;
		border-top-left-radius: 0px;
		margin-top: 5px;
		border-bottom-right-radius: 30px;
		margin-bottom: 5px;
		padding-right: 8px;
	}
	.list-clz {
		background-color: rgba(217, 217, 217, 0.13);
		margin-left: 10px;
		border-bottom-left-radius: 10px;
		box-shadow: 0px 2px 4px 3px rgba(181, 207, 255, 0.5);
		overflow: hidden;
		width: calc(100% - 10px - 10px) !important;
		border-top-left-radius: 10px;
		margin-top: 10px;
		border-top-right-radius: 10px;
		border-bottom-right-radius: 10px;
		margin-bottom: 10px;
		margin-right: 10px;
	}
	.list-item-clz {
		margin: 0px;
		padding: 10px;
	}
	.list-item-clz .list-icon-clz {
		width: 40px;
		height: 40px;
		font-size: calc(40px - 4px) !important;
	}
	.flex-clz {
		margin-left: 5px;
		width: calc(100% - 5px - 15px) !important;
		margin-top: 5px;
		margin-bottom: 5px;
		margin-right: 15px;
	}
	.container {
		padding-left: 0px;
		padding-right: 0px;

		font-size: 12px;
	}
	.container {
		padding-bottom: 80px;
	}
</style>
